package com.eastfair.venueservice.dto;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.ExhibitionSettlementCompanyTypeEnum;
import com.eastfair.venueservice.enumeration.ExhibitionSettlementSettleStatusEnum;
import com.eastfair.venueservice.enumeration.ExhibitionSettlementRefundStatusEnum;
import com.eastfair.venueservice.enumeration.ExhibitionSettlementInvoicingStatusEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 结算记录
 * </p>
 *
 * @author linan
 * @since 2023-05-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ExhibitionSettlementUpdateDTO", description = "结算记录")
public class ExhibitionSettlementUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 最新结算日期
     */
    @ApiModelProperty(value = "最新结算日期")
    private LocalDateTime settlementTime;
    /**
     * 场馆综合展会ID
     */
    @ApiModelProperty(value = "场馆综合展会ID")
    private Long exhibitionManageId;
    /**
     * 结算单号
     */
    @ApiModelProperty(value = "结算单号")
    @Size(max = 255, message = "结算单号长度不能超过255")
    private String settlementNo;
    /**
     * 企业类型 #{HOME_SERVICE_PROVIDER:主场服务商;MAIN_TRANSPORT_SERVICE_PROVIDER:主运服务商;MATCHING_SERVICE_PROVIDER:配套服务商}
     */
    @ApiModelProperty(value = "企业类型 #{HOME_SERVICE_PROVIDER:主场服务商;MAIN_TRANSPORT_SERVICE_PROVIDER:主运服务商;MATCHING_SERVICE_PROVIDER:配套服务商}")
    private ExhibitionSettlementCompanyTypeEnum companyType;
    /**
     * 企业id
     */
    @ApiModelProperty(value = "企业id")
    private Long companyId;
    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称")
    @Size(max = 255, message = "企业名称长度不能超过255")
    private String companyName;
    /**
     * 结算金额
     */
    @ApiModelProperty(value = "结算金额")
    private BigDecimal settlementAmount;
    /**
     * 已收款
     */
    @ApiModelProperty(value = "已收款")
    private BigDecimal received;
    /**
     * 应收款
     */
    @ApiModelProperty(value = "应收款")
    private BigDecimal receivables;
    /**
     * 开票状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;INVOICED:已开票;REJECTED:被驳回}
     */
    @ApiModelProperty(value = "开票状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;INVOICED:已开票;REJECTED:被驳回}")
    private ExhibitionSettlementInvoicingStatusEnum invoicingStatus;
    /**
     * 应开票金额
     */
    @ApiModelProperty(value = "应开票金额")
    private BigDecimal invoicedAmount;
    /**
     * 已开票金额
     */
    @ApiModelProperty(value = "已开票金额")
    private BigDecimal hasInvoicedAmount;
    /**
     * 退款状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;REFUNDED:已退款;NO_REFUND:无须退款;REJECTED:被驳回}
     */
    @ApiModelProperty(value = "退款状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;REFUNDED:已退款;NO_REFUND:无须退款;REJECTED:被驳回}")
    private ExhibitionSettlementRefundStatusEnum refundStatus;
    /**
     * 应退金额
     */
    @ApiModelProperty(value = "应退金额")
    private BigDecimal refundAmount;
    /**
     * 结算状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;HAS_SETTLE:已结算}
     */
    @ApiModelProperty(value = "结算状态 #{NOT_APPLIED:未申请;REQUESTED:已申请;HAS_SETTLE:已结算}")
    private ExhibitionSettlementSettleStatusEnum settleStatus;
    /**
     * 展馆编码
     */
    @ApiModelProperty(value = "展馆编码")
    @Size(max = 64, message = "展馆编码长度不能超过64")
    private String spaceCode;
    /**
     * 展馆号
     */
    @ApiModelProperty(value = "展馆号")
    @Size(max = 100, message = "展馆号长度不能超过100")
    private String spaceName;
    /**
     * 展位编码
     */
    @ApiModelProperty(value = "展位编码")
    @Size(max = 64, message = "展位编码长度不能超过64")
    private String siteCode;
    /**
     * 展位号
     */
    @ApiModelProperty(value = "展位号")
    @Size(max = 100, message = "展位号长度不能超过100")
    private String siteName;
    /**
     * 服务结算金额
     */
    @ApiModelProperty(value = "服务结算金额")
    private BigDecimal totalServicePrice;
    /**
     * 服务已收款
     */
    @ApiModelProperty(value = "服务已收款")
    private BigDecimal serviceReceived;
    /**
     * 服务应收款
     */
    @ApiModelProperty(value = "服务应收款")
    private BigDecimal serviceReceivables;
    /**
     * 附加费结算金额
     */
    @ApiModelProperty(value = "附加费结算金额")
    private BigDecimal totalSurcharge;
    /**
     * 附加费服务已收款
     */
    @ApiModelProperty(value = "附加费服务已收款")
    private BigDecimal surchargeReceived;
    /**
     * 附加费服务应收款
     */
    @ApiModelProperty(value = "附加费服务应收款")
    private BigDecimal surchargeReceivables;
    /**
     * 优惠金额
     */
    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;
    /**
     * 违规罚款金额
     */
    @ApiModelProperty(value = "违规罚款金额")
    private BigDecimal violationPunish;
    /**
     * 保证金实缴金额
     */
    @ApiModelProperty(value = "保证金实缴金额")
    private BigDecimal bondAmount;
    /**
     * 保证金应缴金额
     */
    @ApiModelProperty(value = "保证金应缴金额")
    private BigDecimal payableBondAmount;
    /**
     * 合计应收金额
     */
    @ApiModelProperty(value = "合计应收金额")
    private BigDecimal totalReceivables;
}
